<template>
    <div>
      test02
      {{$route.query.name}}
    </div>
</template>

<script>
    export default {
        name: "Test02",
        mounted() {
          //本地存储取值
          const  v = localStorage.getItem("name");
          //路由取值
          const vv = this.$route.query.name;
          console.log("v="+v);
          console.log("vv="+vv);
        }
    }
</script>

<style scoped>

</style>
